//
//  B.m
//  Memory3
//
//  Created by cora1n on 14-8-11.
//  Copyright (c) 2014年 devwu. All rights reserved.
//

#import "B.h"
#import "A.h"
@implementation B
-(void)setA:(A *)a
{
    [a retain];
    if (_a != nil) {
        [_a release];
    }
    _a = a;
}
-(A *)a
{
    return _a;
}
-(void)dealloc
{
    NSLog(@"B 被释放");
    [super dealloc];
}
@end
